package com.eastfair.venueservice.dto;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.WorkOrderDisposalModeEnum;
import com.eastfair.venueservice.enumeration.WorkOrderWorkOrderTypeEnum;
import com.eastfair.venueservice.enumeration.WorkOrderWorkOrderStatusEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 工单
 * </p>
 *
 * @author linan
 * @since 2023-04-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "WorkOrderPageQuery", description = "工单")
public class WorkOrderPageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    private String orderNumber;
    /**
     * 工单编号
     */
    @ApiModelProperty(value = "工单编号")
    private String workOrderNo;
    /**
     * 展会ID
     */
    @ApiModelProperty(value = "展会ID")
    private Long exhibitionManageId;
    /**
     * 工单类型 #{SERVICE:服务工单;REPAIR:报修工单;CHECK:验收工单;WORK_OVERTIME:加班工单}
     */
    @ApiModelProperty(value = "工单类型 #{SERVICE:服务工单;REPAIR:报修工单;CHECK:验收工单;WORK_OVERTIME:加班工单}")
    private WorkOrderWorkOrderTypeEnum workOrderType;
    /**
     * 工单状态 #{ORDER_TO_BE_RECEIVED:待接单;PENDING:待处理;FINISH:已完成;REVOKE:已撤销;CANCEL:已作废}
     */
    @ApiModelProperty(value = "工单状态 #{ORDER_TO_BE_RECEIVED:待接单;PENDING:待处理;FINISH:已完成;REVOKE:已撤销;CANCEL:已作废}")
    private WorkOrderWorkOrderStatusEnum workOrderStatus;
    /**
     * 工单客户主体id(服务商ID)
     */
    @ApiModelProperty(value = "工单客户主体id(服务商ID)")
    private Long customerSubjectId;
    /**
     * 工单客户主体名称(企业名称)
     */
    @ApiModelProperty(value = "工单客户主体名称(企业名称)")
    private String customerSubjectName;
    /**
     * 工单客户主体类型(服务商类型 字典MENU_AFFILIATION)
     */
    @ApiModelProperty(value = "工单客户主体类型(服务商类型 字典MENU_AFFILIATION)")
    private String customerSubjectType;
    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人")
    private String contact;
    /**
     * 联系人手机号
     */
    @ApiModelProperty(value = "联系人手机号")
    private String contactMobile;
    /**
     * 展馆编码
     */
    @ApiModelProperty(value = "展馆编码")
    private String spaceCode;
    /**
     * 展馆号
     */
    @ApiModelProperty(value = "展馆号")
    private String spaceName;
    /**
     * 展位编码
     */
    @ApiModelProperty(value = "展位编码")
    private String siteCode;
    /**
     * 展位号
     */
    @ApiModelProperty(value = "展位号")
    private String siteName;
    /**
     * 接单主体(字典 SERVICE_PROVIDER_TYPE)
     */
    @ApiModelProperty(value = "接单主体(字典 SERVICE_PROVIDER_TYPE)")
    private String acceptSubjectType;
    /**
     * 接单公司ID(接单主体是主场，配套服务商, 则存储服务商ID；如果是场馆，则存储场馆部门id)
     */
    @ApiModelProperty(value = "接单公司ID(接单主体是主场，配套服务商, 则存储服务商ID；如果是场馆，则存储场馆部门id)")
    private Long acceptCompanyId;
    /**
     * 所属服务部门/商名称
     */
    @ApiModelProperty(value = "所属服务部门/商名称")
    private String acceptCompanyName;
    /**
     * 实付金额
     */
    @ApiModelProperty(value = "实付金额")
    private BigDecimal payAmount;
    /**
     * 支付方式 字典维护
     */
    @ApiModelProperty(value = "支付方式 字典维护")
    private String payWay;
    /**
     * 付款时间
     */
    @ApiModelProperty(value = "付款时间")
    private LocalDateTime payTime;
    /**
     * 备注信息
     */
    @ApiModelProperty(value = "备注信息")
    private String remark;
    /**
     * 工单描述
     */
    @ApiModelProperty(value = "工单描述")
    private String workOrderDesc;
    /**
     * 工单金额
     */
    @ApiModelProperty(value = "工单金额")
    private BigDecimal workOrderAmount;
    /**
     * 处理方式 #{CONSTRUCTION_AND_INSTALLATION:施工安装;EQUIPMENT_WARRANTY:设备保修;SITE_ACCEPTANCE:场地验收;OVERTIME_ON_SITE:现场加班;OTHER:其他}
     */
    @ApiModelProperty(value = "处理方式 #{CONSTRUCTION_AND_INSTALLATION:施工安装;EQUIPMENT_WARRANTY:设备保修;SITE_ACCEPTANCE:场地验收;OVERTIME_ON_SITE:现场加班;OTHER:其他}")
    private WorkOrderDisposalModeEnum disposalMode;

}
